/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.vacoor.ui.qq.resources;

import javax.swing.Icon;
import javax.swing.ImageIcon;

/**
 *
 * @author Vacoor
 */
public class UIResourceManager {

    private static ImageIcon mComPopupCloseImg;
    private static ImageIcon mComArrowImg;
    private static ImageIcon mComArrowRollImg;
    private static ImageIcon mComArrowPressImg;
    private static ImageIcon mPassKeyboardImg;
    private static Icon MPassKeyboardPressImg;
    
    static {
        System.out.println("加载UI资源.....");
        try {
            mComPopupCloseImg = new ImageIcon(UIResourceManager.class.getClassLoader().getResource("images/xIcon.png"));
            mComArrowImg = new ImageIcon(UIResourceManager.class.getClassLoader().getResource("images/inputbtn_normal.png"));
            mComArrowRollImg = new ImageIcon(UIResourceManager.class.getClassLoader().getResource("images/inputbtn_highlight.png"));
            mComArrowPressImg = new ImageIcon(UIResourceManager.class.getClassLoader().getResource("images/inputbtn_down.png"));
            mPassKeyboardImg = new ImageIcon(UIResourceManager.class.getClassLoader().getResource("images/keyboard_01.png"));
            MPassKeyboardPressImg = new ImageIcon(UIResourceManager.class.getClassLoader().getResource("images/keyboard_02.png"));
            System.out.println("加载UI资源完成.");
        } catch (Exception e) {
            javax.swing.JOptionPane.showMessageDialog(null, "加载UI资源出错" + e);
            System.exit(1);
        }
    }
    

    public static ImageIcon getMComPopupCloseImg() {
        return mComPopupCloseImg;
    }

    public static ImageIcon getMComArrowImg() {
        return mComArrowImg;
    }

    public static ImageIcon getMComArrowPressImg() {
        return mComArrowPressImg;
    }

    public static ImageIcon getMComArrowRollImg() {
        return mComArrowRollImg;
    }

    public static ImageIcon getMPassKeyboardImg() {
        return mPassKeyboardImg;
    }

    public static Icon getMPassKeyboardPressImg() {
        return MPassKeyboardPressImg;
    }
}
